package com.maxd.service.helpTask;

import com.maxd.model.*;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


public interface HelpMaintainService {


//    int insert(HelpMaintain helpMaintain, HelpMaintainDetails helpMaintainDetails, HelpSendOrder helpSendOrder);

    int insert(HelpMaintain helpMaintain,HelpSendOrder helpSendOrder);

    Page<Map<String,Object>> selectHelpMaintainListBySendOrder(Long sendOrderUserId,Integer state, Pageable pageable);

    Page<Map<String,Object>> selectHelpMaintainListByTakeOrder(Long takeOrderUserId,Integer state,Pageable pageable);

    HelpMaintain selectById(Long helpMaintainId);

    Integer selectCount(Long helpTaskId,Integer state);

    Integer auditHelpMaintain(Long helpMaintainId,Integer state,String content);

    Page<HelpMaintainModel> selectHelpMaintainList(Pageable pageable);


}
